ScxV6Object.Aggregate Method
Returns an ScxV6Aggregate object representing a database aggregate
Parameters
- Name
The name of the database aggregate to get
Remarks
Database aggregates are used to configure optional extensions for existing database objects. An example of an aggregate is the Historic aggregate available in all analogue and digital points. The Historic aggregate contains all of the historic storage functionality associated with the point. When enabled, the point is stored historically. When not enabled, no historic storage function is performed.
The following example written in VB.NET shows how to use the Aggregate method to retrieve the optional historic storage area of a point:
Dim Svr as ScxV6Server
Dim Obj as ScxV6Object
Dim His as ScxV6Aggregate
' Connect to the server
Svr = new ScxV6Server
Svr.Connect "MAIN", "", ""
' Find the point in the database
Set Obj = Svr.FindObject("Group.Point")
' Use GetAggregate to get the optional historic storage
Set His = Obj.Aggregate("Historic")
If His is Nothing Then
MsgBox "Historic not defined"
Else
' Access properties and method of the His object
End If